<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script type="text/javascript" src="js/jquery-1.11.1.js" ></script>
		<script type="text/javascript" src="js/jquery.qrcode.js" ></script>
        <!-- <script type="text/javascript" src="js/qrcode.js" ></script>  -->
        <script type="text/javascript" src="js/utf.js" ></script>
		 <p>Render in table</p>
		 <div id="qrcodeTable"></div>
		 <p>Render in canvas</p>
		 <div id="qrcodeCanvas"></div>
		 <script> 
		    jQuery('#qrcodeTable').qrcode({
		         render    : "table",               
		         text    : "http://www.baidu.com" , 
		         width : "200",               //二维码的宽度
                 height : "200",
		     });    
		     jQuery('#qrcodeCanvas').qrcode({
		     	 render    : "canvas",
		         text    : "http://www.baidu.com",
		         width : "200",               //二维码的宽度
                 height : "200",              //二维码的高度
                 src: 'img/1.jpg'             //二维码中间的图片
		     });    
		 </script>
		 </body>
</html>
